package com.ruoyi.oos.duty.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 轮值规则对象 oos_duty
 * 
 * @author bulang
 * @date 2020-04-27
 */
public class Duty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 启用时间 */
    @Excel(name = "启用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date starttime;

    /** 启用状态 */
    @Excel(name = "启用状态")
    private String status;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String name;

        public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
        public void setStarttime(Date starttime)
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
        public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
        public void setName(String name)
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        
        .append("id", getId())
        
        .append("starttime", getStarttime())
        
        .append("status", getStatus())
        
        .append("name", getName())
            .toString();
    }
}
